<!--
 * Copyright TLR Team, Inc. All Rights Reserved.
-->
<div class="container-fluid" ng-if="userType === '0'">
    <!-- Page Heading -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header page-header2">
                用户管理
            </h1>
        </div>
    </div>
    <!-- /.row -->
    <div class="row fixed-buttons">
        <div class="form-group fixed-button-panel">
            <!--
            <button ng-click="onUserToolbarClick('add')" data-toggle="modal" data-target="#UserModal" type="button"
                    class="btn btn-default"><i
                    class="fa fa-plus-circle hella-icon-offset"></i>添加
            </button>-->
            <button ng-click="onUserToolbarClick('edit')" data-toggle="modal" data-target="#UserModal" type="button"
                    class="btn btn-default"><i class="fa fa-edit hella-icon-offset"></i>编辑
            </button>
            <button type="button" data-toggle="modal" data-target="#DelConfirmModal" class="btn btn-default"
                    style="margin-left: 50px;"><i
                    class="fa fa-times-circle hella-icon-offset"></i>删除
            </button>
        </div>
    </div>
    <div class="row" style="padding-top: 70px;">
        <div class="col-lg-12">
            <div>
                <!-- Nav tabs -->
                <ul class="nav nav-tabs">
                    <li role="presentation" ng-class="{'active':subview === 'customer'}"><a href="#/dashboard-user/user/customer">会员</a></li>
                    <li role="presentation" ng-class="{'active':subview === 'employee'}"><a href="#/dashboard-user/user/employee">员工</a></li>
                    <li role="presentation" ng-class="{'active':subview === 'driver'}"><a href="#/dashboard-user/user/driver">司机</a></li>
                    <li role="presentation" ng-class="{'active':subview === 'urgent'}"><a href="#/dashboard-user/user/urgent">紧急联系员</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active" style="padding-top: 20px;">
                        <table class="table table-bordered" cellspacing="0" width="100%">
                            <thead  class="tlr-table-header">
                                <tr>
                                    <th>选择</th>
                                    <th>编号</th>
                                    <th>微信号标识</th>
                                    <th>名字</th>
                                    <th>手机</th>
                                    <th>电邮</th>
                                    <th>住址</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tr ng-repeat="item in users"
                                ng-click="onUserSelect(item)"
                                ng-class="{'tlr-table-row-selected':item.id === user.id }"
                                class="dashboard-table-tr">
                                <td><input type="checkbox" ng-checked="item.id === user.id" disabled class="table-checkbox"></td>
                                <td>{{item.id}}</td>
                                <td>{{item.webchat}}</td>
                                <td>{{item.name}}</td>
                                <td>{{item.tel}}</td>
                                <td>{{item.email}}</td>
                                <td>{{item.address}}</td>
                                <td>{{USER.statuses[item.status - 1].name}}</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <ng-include src="'app/mvp/template/view/dashboard/form/user_form.html'"></ng-include>
    <ng-include src="'app/mvp/template/view/dashboard/form/del_confirm_form.html'"></ng-include>
    <!-- /.row -->
</div>